package club.pchome.dao;

import club.pchome.model.TAccount;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;


/** 账户表**/
@Repository
public interface TAccountDao extends BaseDao<TAccount>{


	public TAccount getAccountForId(@Param("userId") long userId);

	public int updateAccount(TAccount tAccount);

	public int unBlock(BigDecimal operAmount, long userID);

	public TAccount selectuseraccountforuserid(Long userId);
	
	public int updateaddegforuserid(TAccount tAccount);
	
	public int updatefdaddforuserid(TAccount tAccount);
	
	public int updateusereebandegjs(TAccount tAccount);

	public int updatesellNumberforuserid(Long userId);
	
	public int updatefdjsforuserid(TAccount tAccount);
	
	public int updatejsegforuserid(TAccount tAccount);
	
	public int updategetmoney(TAccount tAccount);
	public int updatebuymoney(TAccount tAccount);
	public int updateaddrebandfd(TAccount tAccount);
	public int updateaddeg(TAccount tAccount);
	
	public int updateaddsellnumber(Long userId);
	
	public int updateaddreb(TAccount tAccount);
	public void updateaddsellnumberforall();
}